//
//  NSLayoutConstraint+Extensions.swift
//  FrameProduct
//
//  Created by delegate on 2024/2/3.
//


import UIKit

public extension NSLayoutConstraint {
    func with(priority: UILayoutPriority) -> NSLayoutConstraint {
        self.priority = priority
        return self
    }
}

extension Array where Element: NSLayoutConstraint {
   public func activate() {
        NSLayoutConstraint.activate(self)
    }
    public func deactivate() {
        NSLayoutConstraint.deactivate(self)
    }
}
